package com.moody.hibernate.domain;



/**
 * QuaValueId entity. @author MyEclipse Persistence Tools
 */

public class QuaValueId  implements java.io.Serializable {


    // Fields    

     private String serialNo;
     private String modelId;
     private String itemNo;


    // Constructors

    /** default constructor */
    public QuaValueId() {
    }

    
    /** full constructor */
    public QuaValueId(String serialNo, String modelId, String itemNo) {
        this.serialNo = serialNo;
        this.modelId = modelId;
        this.itemNo = itemNo;
    }

   
    // Property accessors

    public String getSerialNo() {
        return this.serialNo;
    }
    
    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public String getModelId() {
        return this.modelId;
    }
    
    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    public String getItemNo() {
        return this.itemNo;
    }
    
    public void setItemNo(String itemNo) {
        this.itemNo = itemNo;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof QuaValueId) ) return false;
		 QuaValueId castOther = ( QuaValueId ) other; 
         
		 return ( (this.getSerialNo()==castOther.getSerialNo()) || ( this.getSerialNo()!=null && castOther.getSerialNo()!=null && this.getSerialNo().equals(castOther.getSerialNo()) ) )
 && ( (this.getModelId()==castOther.getModelId()) || ( this.getModelId()!=null && castOther.getModelId()!=null && this.getModelId().equals(castOther.getModelId()) ) )
 && ( (this.getItemNo()==castOther.getItemNo()) || ( this.getItemNo()!=null && castOther.getItemNo()!=null && this.getItemNo().equals(castOther.getItemNo()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getSerialNo() == null ? 0 : this.getSerialNo().hashCode() );
         result = 37 * result + ( getModelId() == null ? 0 : this.getModelId().hashCode() );
         result = 37 * result + ( getItemNo() == null ? 0 : this.getItemNo().hashCode() );
         return result;
   }   





}